package com.parkinginfo.listviews;

import com.parkinginfo.dbhelper.Place;
import com.parkinginfo.manager.GarageDetails;
import com.parkinginfo.manager.GarageObject;
import com.parkinginfo.manager.R;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.CheckedTextView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;

public class GarageListItem extends LinearLayout {
	
	private GarageObject myplace;
	private TextView text1;
	private TextView text2;

	public GarageListItem(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	@Override
	protected void onFinishInflate() {
		super.onFinishInflate();
		text1 = (TextView)findViewById(R.id.title);
		//text2 = (TextView)findViewById(R.id.placeaddress);
	}

	public void setPlace(GarageObject myplace) {
		this.myplace = myplace;
		String title = new String();
	//	String location = new String();
		title = myplace.title;
	//	location = myplace.getLocation();
		
		text1.setText(title);
	//	text2.setText(location);
	}

	public GarageObject getPlace() {
		return myplace;
	}
}
